[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
inport() Input from Hardware Port
#include <dos.h>
int inport(port)
int port; Specified port
inport() reads a word from 'port'.
Returns: The value read from 'port'.
Portability: 8086-Family of processors only.
-------------------------------- Example ---------------------------------
The following statements read a word from port 'x'.
#include <dos.h> /* for inport */
main()
{
int val;
val = inport(x);
}
See Also:
inportb()
outport()
outportb()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson